<template>
    <gridView :url="url" :menuId="menuId" :treeObj="treeObj" ></gridView>
</template>


<script>

import gridView from "@/components/common/treeAndGridView.vue";
export default {
    data() {
        return {
            treeObj: {
                treeUrl:'/java/sys/model/list',
                treeProps:{label:'showName',isLeaf: true,children:'children'},
                searchProp:'modelId',
                nameProp:'showName',
                parentPro:'',
                initParam:{},
                defaultExpandAll:false,
                lazy:false,
                title:'模块树'
            },
            url:'',
            menuId:1
        };
    },
    created() {
        var url = this.$route.path;
        url = '/java'+url.substring(0, url.lastIndexOf('index')-1);
        this.url = url;
        this.menuId = this.$route.params.menuId;
    },
  
    mounted() {
        var _this = this;
    },
    methods: {

    },
    components: { gridView }
};
</script>